﻿using System.Collections.Generic;
using System.Linq;

namespace KLS.PPDS.ApplicationService.Manager
{
    public class PageExtension 
    {
        public string ExtensionName { get; set; }
        public double ExtensionValue { get; set; }
    }

    public class PageExtensionManager
    {
        public static List<PageExtension> GetExtensions() 
        {
            var list = new List<PageExtension>()
            {
                new PageExtension(){ExtensionName="¼",ExtensionValue=0.25},
                new PageExtension(){ExtensionName="½",ExtensionValue=0.50},
                new PageExtension(){ExtensionName="¾",ExtensionValue=0.75}
            };

            return list;
        }

        public static string GetExtensionsStringByValue(double ExtensionValue)
        { 
            string ExtensionString="";
            if(ExtensionValue==0.25)
                ExtensionString= "¼";
            else if (ExtensionValue == 0.50)
                ExtensionString= "½";
            else if (ExtensionValue == 0.75)
                ExtensionString = "¾";
            else
                ExtensionString = "";
            return ExtensionString;
        }

        public static List<int> GetExtend1List()
        {
             return Enumerable.Range(1, 20).ToList();
        }
    }

    
}
